﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<PhotoGalleryEnteties.PhotoInfo>" %>

 <div class="photoPanel">
                   <div class="outer">
                        <div class="inner">
                           <img src="<%=Url.RouteUrl( "optimized",new {id = Model.PhotoId })  %>" alt=""  />
                        </div>
                   </div>
                <div class="info" >
                    <div class="display-label">Title:</div>
                    <div class="display-field"><%=Model.Title%></div>

                    <div class="display-label">Author:</div>
                    <div class="display-field"><%: Model.Album.Owner.UserName%></div>

                    <div class="display-label">Album:</div>
                    <div class="display-field"><%: Model.Album.Title%></div>

                    <div class="display-label">Addition date:</div>
                    <div class="display-field"><%: String.Format("{0:g}", Model.CreationDate)%></div>

        
                    <div class="display-label">Width:</div>
                    <div class="display-field"><%: Model.Width%></div>
        
                    <div class="display-label">Height:</div>
                    <div class="display-field"><%: Model.Height%></div>


                    <%=Html.ActionLink("Navigate to album page", "Details", "Album", new { id = Model.Album.AlbumId }, new { @class = "reference" })%>
                     <%=Html.ActionLink("Navigate to photo page", "Detail", "Photo", new { id = Model.PhotoId }, new { @class = "reference" })%>

                </div>
        </div>
